﻿#region Summary

// 
// Owner : JackieHan 
// 
// Solution : Erp 
// 
// Project : Jackie.Utility.BvConversion
// 
// File : IPropertyDefineSet.cs
// 
// CopyRight : Copyright © 2010-2011 Skomart Corporation, All Rights Reserved 
// 
// Summary : 设置属性关系接口
// 
// History : 
//			2012-07-13 17:07:57	    Create 
// 

#endregion

#region Using

using System;
using System.Collections.Generic;
using System.Linq.Expressions;

#endregion

namespace Jackie.Utility.BvConversion
{
    ///<summary>
    ///设置属性关系接口
    ///</summary>
    public interface IPropertyDefineSet<TB, TV>
        where TB : class
        where TV : class
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="bProperty"></param>
        /// <param name="vProperty"></param>
        /// <param name="isKey"></param>
        /// <param name="isSubKey"></param>
        void Set(Expression<Func<TB, object>> bProperty, Expression<Func<TV, object>> vProperty,bool isKey,bool isSubKey);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="bProperty"></param>
        /// <param name="vProperty"></param>
        /// <param name="isSubKey"></param>
        void Set(Expression<Func<TB, object>> bProperty, Expression<Func<TV, object>> vProperty, bool isSubKey);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="bProperty"></param>
        /// <param name="vProperty"></param>
        void Set(Expression<Func<TB, object>> bProperty, Expression<Func<TV, object>> vProperty);
    }
}